<template>
    <el-container>
        <!--<el-menu :default-active="$route.path"  @open="handleOpen" @close="handleClose" router>-->
        <el-menu :default-active="$route.path" router>
            <el-menu-item index="/index">
                <i class="el-icon-menu"></i>
                <span>系统首页</span>
            </el-menu-item>
            <el-menu-item index="/withdraw" v-if="$store.state.system_type == 1">
                <i class="el-icon-setting"></i>
                <span>提现设置</span>
            </el-menu-item>
			<el-menu-item index="/userList" v-if="$store.state.system_type == 1">
				<i class="el-icon-user-solid"></i>
				<span>用户列表</span>
			</el-menu-item>
            <el-menu-item index="/bannerList" v-if="$store.state.system_type == 1">
                <i class="el-icon-picture"></i>
                <span>商城轮播图</span>
            </el-menu-item>
            <el-menu-item index="/supplier" v-if="$store.state.system_type == 1">
                <i class="el-icon-s-shop"></i>
                <span>供货商列表</span>
            </el-menu-item>
            <el-submenu index="100" v-if="$store.state.system_type == 1">
                <template slot="title">
                    <i class="el-icon-s-custom"></i>
                    <span>会员管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/memberList">会员列表</el-menu-item>
                    <el-menu-item index="/memberRule">会员机制</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-s-opportunity"></i>
                    <span>积分管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/integralRules" v-if="$store.state.system_type == 1">积分制度管理</el-menu-item>
                    <el-menu-item index="/integralProduct">积分商品管理</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
                <template slot="title">
                    <i class="el-icon-s-goods"></i>
                    <span>商品管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/classList" v-if="$store.state.system_type == 1">商品分类</el-menu-item>
					<el-menu-item index="/goodsList">商品列表</el-menu-item>
					<el-menu-item index="/fx_goods_list" v-if="$store.state.system_type == 1">会员商品列表</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="3">
                <template slot="title">
                    <i class="el-icon-s-order"></i>
                    <span>订单管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/supplier_order">供货商订单列表</el-menu-item>
                    <el-menu-item index="/fx_self_order" v-if="$store.state.system_type == 1">会员个人订单列表</el-menu-item>
                    <el-menu-item index="/integralOrder">积分订单</el-menu-item>
                    <el-menu-item index="/redund_list">退货退款列表</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="4">
                <template slot="title">
                    <i class="el-icon-s-finance"></i>
                    <span>财务管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/income">收入列表</el-menu-item>
                    <el-menu-item index="/grossProfit" v-if="$store.state.system_type == 1">毛利核算</el-menu-item>
                    <el-menu-item index="/productCensue" v-if="$store.state.system_type == 1">产品统计</el-menu-item>
                    <el-menu-item index="/memberFinancial" v-if="$store.state.system_type == 1">小店分佣</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="10"  v-if="$store.state.system_type == 1">
                <template slot="title">
                    <i class="el-icon-s-data"></i>
                    <span>数据分析</span>
                </template>
                <el-menu-item index="/shareData">分享数据统计</el-menu-item>
            </el-submenu>
            <el-menu-item index="/agreement" v-if="$store.state.system_type == 1">
                <i class="el-icon-s-cooperation"></i>
                <span>协议管理</span>
            </el-menu-item>
        </el-menu>
    </el-container>
</template>

<script>
export default {
    data(){
        return {
            navIndex: '1'
        }
    },
    created(){
    },
    methods: {
        // handleOpen(key,keyPath) {
            // console.log(key,keyPath);
        // },
        // handleClose(key,keyPath) {
            // console.log(key,keyPath);
        // }
    },
}
</script>

<style>
    .el-menu{
        width: 100%
    }
    .el-menu > .el-menu-item,.el-submenu{
        border-bottom: 1px solid #eee
    }
</style>

